<template>
  <div class="block text-center">
    <el-carousel motion-blur height="400px">
      <el-carousel-item v-for="item in itemList" :key="item">
        <div class="carousel-box" @click="openUrl(item)">
          <img :src="item" alt="" />
        </div>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>
<script setup>
const props = defineProps({
  itemList: {
    type: Array,
    default: [], //advertising  cloud
  },
})
const openUrl = (redirect_url) => {
  if (redirect_url) {
    window.open(redirect_url)
  }
}
</script>
<style scoped lang="scss">
.demonstration {
  color: var(--el-text-color-secondary);
}

.carousel-box {
  img {
    width: 100%;
  }
}

.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>
